<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class NeighborInfoRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'lat'		=> 'required|numeric',
			'lng'		=> 'required|numeric',
        ];
    }
    
    public function messages(){
    	return [
    		'lat.required'	=> '经纬度获取失败',
    		'lat.numeric'	=> '经纬度获取失败',
    		'lng.required'	=> '经纬度获取失败',
    		'lng.numeric'	=> '经纬度获取失败',
		];
	}
}
